getLighterColor

open fun getLighterColor(hslColor: Array<Float>, amount: Float): Color

Make a dark color lighter (more luminance) by a specified amount.

Return

The adjusted color.

Parameters

hslColor

The color to begin with.

amount

The amount to adjust luminance (positive for lighter, negative for darker).